package com.jmgd.cjlx.controller;

import com.jmgd.cjlx.service.IotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping("/voice")
public class IotVoiceController {
    @Autowired
    IotService iotService;


    @RequestMapping(value = "/systemAlarm",method= RequestMethod.GET)
    public void systemAlarm() throws Exception {
        iotService.systemAlarm();
    }
}
